<% define_content :link do %>
  <%= registration_confirmation_url(asset.user.communication_channel.confirmation_code) %>
<% end %>

<% define_content :subject do %>
  <%= t :subject, "Canvas Account Admin Invitation" %>
<% end %>

<a href="<%= content(:link) %>">
  {{#t}}Click here to finish the registration process{{/t}}
</a>

<% email = asset.user.email; login = (asset.user.pseudonym.unique_id rescue "none") %>

<p>
    <%= t("You've been given an account role for the %{account} account at %{website}. Role type: %{role_type}.",
        :role_type => asset.readable_type, :account => asset.account.name, :website => HostUrl.context_host(asset.account)) %>
</p>

<table border="0" style="font-size: 14px; color: #444444;
    font-family: 'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif';
    border-collapse: collapse;">
  <tr>
      <td style="padding-right: 10px;">{{#t}}Name{{/t}}:</td>
      <td style="font-weight: bold;"><%=  asset.user.name %></td>
  </tr>
  <tr>
      <td style="padding-right: 10px">{{#t}}Email{{/t}}:</td>
      <td style="font-weight: bold;"><%= email %></td>
  </tr>
  <% if email != login %>
    <tr>
        <td style="padding-right: 10px;">{{#t}}Username{{/t}}:</td>
        <td style="font-weight: bold;"><%= login %></td>
    </tr>
  <% end %>
</table>

<p>{{#t}}You'll need to register with Canvas before you can participate as an account admin.{{/t}}</p>

